package com.atguigu.tingshu.account.mapper;

import com.atguigu.tingshu.model.account.RechargeInfo;
import com.atguigu.tingshu.model.account.UserAccountDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RechargeInfoMapper extends BaseMapper<RechargeInfo> {


    /**
     * 查询当前用户账户变动明细列表
     *
     * @param pageInfo
     * @param accountTradeType
     */
    Page<UserAccountDetail> getUserAccountDetail(Page<UserAccountDetail> pageInfo, @Param("userId") Long userId, @Param("accountTradeType") String accountTradeType);
}
